import { constantRoutes } from '@/router' // 导入静态路由表

export default {
  namespaced: true,
  state: {
    menusList: []
  },
  mutations: {
    updateMenus(state, asynRoutes) {
      // 将动态路由和静态路由表合并到一起
      state.menusList = [...constantRoutes, ...asynRoutes]
    }
  }
}
